package com.gdkj.entity.game;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gdkj.entity.Users;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @Description  
 * @Author  zhangwen
 * @Date 2022-05-28 
 */

@Data
@Table(name="cmf_game_draw_score_record")
public class CmfGameDrawScoreRecord  implements Serializable {

	private static final long serialVersionUID =  1570425990914783209L;

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;

	@ApiModelProperty(value ="房间id")
	private Integer showId;

	@ApiModelProperty(value ="用户id")
	private Long uid;

	@ApiModelProperty(value ="得分")
	private Integer score;

	@ApiModelProperty(value ="创建时间")
	private Date createTime;
	
	@ApiModelProperty(value = "用户昵称")
	@Transient
	private String nickname;
	@ApiModelProperty(value = "排名")
	@Transient
	private Integer rank;
	@ApiModelProperty(value = "小头像")
	@Transient
	private String avatarThumb;
	@ApiModelProperty(value = "大头像")
	@Transient
	private String avatar;
	@ApiModelProperty(value = "获得金币")
	private int coin;

	@ApiModelProperty(value = "获得金币字符串")
	@Transient
	private String coinStr;

	@ApiModelProperty(value = "预扣金币")
	@Transient
	@JsonIgnore
	private int deduct;

	@ApiModelProperty(value = "计数")
	@Transient
	@JsonIgnore
	private int count=1;
}
